<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="pageoffice.js" id="po_js_main"></script>
    <script th:inline="javascript">
        var ctx = [[${ctx}]];

        function openFile() {
            debugger
            POBrowser.openWindowModeless(ctx + '/word','width=1200px;height=800px;');
        }
    </script>
</head>
<body>
<h1 th:title="${ctx}">PageOffice 集成效果演示</h1>

<button onclick="openFile()">打开文件</button>
</body>
</html>